<div class="goodslist">
	{{#each goods}}
	<catering_goods 
		href="#default/detail?id={{_id}}"
		src="{{preview_img_url}}"
		name="{{goods_name}}"
		price="{{price}}"
	></catering_goods>
	{{/each}}
	
	<div class="pages">
		{{#if $Cache.page_num.length>1}}
		<a event-click="{{'$Top.$Event.prepage'}}" class="item">&lt;</a>
		{{#each $Cache.page_num}}
		<a event-click="{{'$Top.$Event.jumpToPage'}}" class="item">
			{{$Index+1}}
		</a>
		{{/each}}
		<a event-click="{{'$Top.$Event.nextpage'}}" class="item">&gt;</a>
		{{/if}}
	</div>	
</div>

<xmp type="tag" name="catering_goods">
	<div class="goods">
		<a target="_blank" href="${href}">
			<img bind-src="${src}" />
		</a>
		<div class="info">
			<div class="name">
				<a target="_blank" href="${href}">${name}</a>
			</div>
			<div class="price">
				￥<span>${price}</span>
			</div>
			<div class="method">
				<button event-click="{{'$Top.$Event.goods_list.add_to_cart'}}">加入购物车</button>
			</div>
		</div>
	</div>
</xmp>

<link rel="stylesheet" type="text/css" href="/css/catering/pc_goodslist.css" />